Return

Edit Resource: AvailableDiscreteWindows

Description

The AvailableDiscreteWindows attribute under EditResource defines the available or unavailable windows of a resource (depending on default availability). These windows occur as a singular instance defined by the user. When this command is sent, all previous discrete windows are deleted.

Parameters

ParameterDescription
StartThe format is YYYY/MM/DD_HH:MM:SS or YYYY/MM/DD_HH:MM:SS.fff.
StopThe format is YYYY/MM/DD_HH:MM:SS or YYYY/MM/DD_HH:MM:SS.fff.
CommentA string of text in single quotes. An empty string may be used if no comment is desired.

Examples

The Resource Madrid26 is set to be unavailable from 2017/01/02 6:00:00 to 2017/01/03 12:00:00 and gives the window a description of Antenna Maintenance

PATCH api/resource/Madrid26

Body:

{

"AvailableDiscreteWindows" : {

"Start" : "2017/01/02_06:00:00",

"Stop" : "2017/01/03_12:00:00",

"Comment" : "Antenna Maintenance" }

}


The resource Satellite is set to be unavailable from 2017/02/09 11:45:00 to 2017/02/09 13:00:00 and 2017/02/10 11:45:00 to 2017/02/10 13:00:00 and gives the window a description of Sun Outage.

PATCH api/resource/Satellite

Body:

{

"AvailableDiscreteWindows" : {

"Start" : "2017/02/09_11:45:00",

"Stop" : "2017/02/09_13:30:00",

"Comment" : "Sun Outage" }

"AvailableDiscreteWindows" : {

"Start" : "2017/02/10_11:45:00",

"Stop" : "2017/02/10_13:30:00",

"Comment" : "Sun Outage" }

}